from camel.agents import ChatAgent
from camel.models import ModelFactory
from camel.societies import Workforce
from camel.tasks import Task
from camel.types import ModelPlatformType
from camel.messages import BaseMessage
from camel.types import RoleType
from dotenv import load_dotenv
import os

load_dotenv()
Model_Type = os.getenv("MODEL_TYPE")
Model_Api = os.getenv("ZHIPU_API_KEY")
Model_Url = os.getenv("MODEL_URL")
model = ModelFactory.create(
    model_platform=ModelPlatformType.OPENAI,
    model_type=Model_Type,
    api_key=Model_Api,
    url=Model_Url
)
